-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
drivers: power: lt3074: add driver for LT3074 #2408
base: main
Are you sure you want to change the base?
Conversation
The LT3074 is a low voltage, ultralow noise, and ultrafast transient response linear regulator with a PMBus serial interface. The device supplies up to 3A with a typical dropout voltage of 45mV. Signed-off-by: Cedric Encarnacion <[email protected]>
This adds tinyIIO support for the LT3074 device. This exposes output voltage and current, temperature, and bias voltage channels. Signed-off-by: Cedric Encarnacion <[email protected]>
Add initial project files for both basic and IIO examples for LT3074. Signed-off-by: Cedric Encarnacion <[email protected]>
Add README.rst documentation file for LT3074 alongside other documentation related files. Signed-off-by: Cedric Encarnacion <[email protected]>
Add README.rst documentation file for project alongside other documentation related files. Signed-off-by: Cedric Encarnacion <[email protected]>
43aab10
to
6a215c2
Compare
* @return ret - Result of the reading procedure. | ||
* In case of success, the size of the read data is returned. | ||
*/ | ||
static int32_t lt3074_iio_reg_read(void *dev, uint32_t reg, uint32_t *readval) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually there is one comment: the return type of the functions should be int
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are mapped to .debug_reg_read
and .debug_reg_write
which return int32_t
. Compiler also gives warnings about incompatible pointers. Should I still proceed with int
?
Pull Request Description
The LT3074 is a low voltage, ultralow noise, and ultrafast transient
response linear regulator with a PMBus serial interface. The device
supplies up to 3A with a typical dropout voltage of 45mV.
This pull request adds the no-OS and IIO driver, as well as examples
and documentations, to quickly evaluate the LT3074.
PR Type
PR Checklist